export default [
  {
    path: "/",
    name: "/",
    redirect: "/home",
    component: "layout", // 容器布局-顶层路由
    meta: {
      keepAlive: true
    },
    // 二级路由-主要渲染页面
    children: [
      {
        path: "/home",
        name: "home",
        component: "home/home",
        meta: {
          title: "home", // 国际化
          hide: false, // 是否隐藏此路由
          disable: false, // 是否停用此路由
          keepAlive: false, // 缓存组件状态
          affix: true, // 固定在tagesView栏上
          link: "", // 是否外链
          iframe: false, // 是否内嵌窗口
          roles: ["admin", "common"], // 路由权限
          svgIcon: "el-icon-house", // 菜单图标
          sort: 1
        }
      },
      {
        path: "/student",
        name: "student",
        redirect: "/student/student-info",
        meta: {
          title: "student-management",
          hide: false,
          disable: false,
          keepAlive: true,
          affix: false,
          link: "",
          iframe: false,
          roles: ["admin", "common"],
          svgIcon: "el-icon-user", // 菜单图标
          sort: 3
        },
        children: [
          {
            path: "/student/student-info",
            name: "student-info",
            component: "student/student-info/student-info",
            meta: {
              title: "student-info",
              hide: false,
              disable: false,
              keepAlive: true,
              affix: false,
              link: "",
              iframe: false,
              roles: ["admin", "common"],
              icon: "el-icon-info", // 菜单图标
              sort: 1
            }
          }
        ]
      },
      {
        path: "/diary",
        name: "diary",
        redirect: "/diary/write-diary",
        meta: {
          title: "diary-module",
          hide: false,
          disable: false,
          keepAlive: true,
          affix: false,
          link: "",
          iframe: false,
          roles: ["admin", "common"],
          svgIcon: "el-icon-edit", // 菜单图标
          sort: 4
        },
        children: [
          {
            path: "/diary/write-diary",
            name: "write-diary",
            component: "diary/write-diary/write-diary",
            meta: {
              title: "write-diary",
              hide: false,
              disable: false,
              keepAlive: true,
              affix: false,
              link: "",
              iframe: false,
              roles: ["admin", "common"],
              icon: "el-icon-pencil", // 菜单图标
              sort: 1
            }
          },
          {
            path: "/diary/diary-record",
            name: "diary-record",
            component: "diary/diary-record/diary-record",
            meta: {
              title: "diary-record",
              hide: false,
              disable: false,
              keepAlive: true,
              affix: false,
              link: "",
              iframe: false,
              roles: ["admin", "common"],
              icon: "el-icon-notebook", // 菜单图标
              sort: 2
            }
          }
        ]
      },
      {
        path: "/psychological-evaluation",
        name: "psychological-evaluation",
        redirect: "/psychological-evaluation/take-evaluation",
        meta: {
          title: "psychological-evaluation",
          hide: false,
          disable: false,
          keepAlive: true,
          affix: false,
          link: "",
          iframe: false,
          roles: ["admin", "common"],
          svgIcon: "el-icon-activity", // 菜单图标
          sort: 5
        },
        children: [
          {
            path: "/psychological-evaluation/take-evaluation",
            name: "take-evaluation",
            component: "psychological-evaluation/take-evaluation/take-evaluation",
            meta: {
              title: "take-evaluation",
              hide: false,
              disable: false,
              keepAlive: true,
              affix: false,
              link: "",
              iframe: false,
              roles: ["admin", "common"],
              icon: "el-icon-paperclip", // 菜单图标
              sort: 1
            }
          },
          {
            path: "/psychological-evaluation/evaluation-record",
            name: "evaluation-record",
            component: "psychological-evaluation/evaluation-record/evaluation-record",
            meta: {
              title: "evaluation-record",
              hide: false,
              disable: false,
              keepAlive: true,
              affix: false,
              link: "",
              iframe: false,
              roles: ["admin", "common"],
              icon: "el-icon-sell", // 菜单图标
              sort: 2
            }
          }
        ]
      },
      {
        path: "/consultation-appointment",
        name: "consultation-appointment",
        component: "consultation-appointment/consultation-appointment",
        meta: {
          title: "consultation-appointment",
          hide: false,
          disable: false,
          keepAlive: true,
          affix: false,
          link: "",
          iframe: false,
          roles: ["admin", "common"],
          svgIcon: "el-icon-calendar", // 菜单图标
          sort: 6
        }
      },
      {
        path: "/user-center",
        name: "user-center",
        redirect: "/user-center/personal-center",
        meta: {
          title: "user-center",
          hide: false,
          disable: false,
          keepAlive: true,
          affix: false,
          link: "",
          iframe: false,
          roles: ["admin", "common"],
          svgIcon: "el-icon-user-solid", // 菜单图标
          sort: 7
        },
        children: [
          {
            path: "/user-center/personal-center",
            name: "personal-center",
            component: "user-center/personal-center/personal-center",
            meta: {
              title: "personal-center",
              hide: false,
              disable: false,
              keepAlive: true,
              affix: false,
              link: "",
              iframe: false,
              roles: ["admin", "common"],
              icon: "el-icon-user", // 菜单图标
              sort: 1
            }
          },
          {
            path: "/user-center/user-info",
            name: "user-info",
            component: "user-center/user-info/user-info",
            meta: {
              title: "user-info",
              hide: false,
              disable: false,
              keepAlive: true,
              affix: false,
              link: "",
              iframe: false,
              roles: ["admin", "common"],
              icon: "el-icon-info", // 菜单图标
              sort: 2
            }
          },
          {
            path: "/user-center/user-settings",
            name: "user-settings",
            component: "user-center/user-settings/user-settings",
            meta: {
              title: "user-settings",
              hide: false,
              disable: false,
              keepAlive: true,
              affix: false,
              link: "",
              iframe: false,
              roles: ["admin", "common"],
              icon: "el-icon-setting", // 菜单图标
              sort: 3
            }
          }
        ]
      },
      {
        path: "/system",
        name: "system",
        redirect: "/system/account-management",
        meta: {
          title: "system-management",
          hide: false,
          disable: false,
          keepAlive: true,
          affix: false,
          link: "",
          iframe: false,
          roles: ["admin"],
          svgIcon: "el-icon-setting", // 菜单图标
          sort: 8
        },
        children: [
          {
            path: "/system/account-management",
            name: "account-management",
            component: "system/account-management/account-management",
            meta: {
              title: "account-management",
              hide: false,
              disable: false,
              keepAlive: true,
              affix: false,
              link: "",
              iframe: false,
              roles: ["admin"],
              icon: "el-icon-user", // 菜单图标
              sort: 1
            }
          },
          {
            path: "/system/role-management",
            name: "role-management",
            component: "system/role-management/role-management",
            meta: {
              title: "role-management",
              hide: false,
              disable: false,
              keepAlive: true,
              affix: false,
              link: "",
              iframe: false,
              roles: ["admin"],
              icon: "el-icon-people", // 菜单图标
              sort: 2
            }
          }
        ]
      }
    ]
  }
];
